package day05;

public class ForDemo {
    public static void main(String[] args) {
        //累加和：1+2+3+4+5+6+...+100
       /*
        int sum = 0;//和
        for (int i = 1; i <= 100; i++) {
            sum += i;//sum=sum+1
        }
        System.out.println("sum=" + sum);
        */


        //for循环演示
        for (int num = 1; num <= 9; num++) {
            if (num == 4){
                break;
            }
            System.out.println(num+"*9="+num*9);
        }
    }
}
